import request from '@/utils/request'
/*推荐*/
// 列表
export function getRecommendList(params) {
    return request({
        url: '/recommend/index',
        method: 'post',
        data: params
    })
}
// 添加
export function addRecommend(params) {
    return request({
        url: '/recommend/create',
        method: 'post',
        data: params
    })
}
// 详情
export function getRecommendDetail(params) {
    return request({
        url: '/recommend/detail',
        method: 'post',
        data: params
    })
}
// 删除
export function delRecommend(params) {
    return request({
        url: '/recommend/delete',
        method: 'post',
        data: params
    })
}
// 发布
export function statusRecommend(params) {
    return request({
        url: '/recommend/status',
        method: 'post',
        data: params
    })
}
// 编辑
export function editRecommend(params) {
    return request({
        url: '/recommend/update',
        method: 'post',
        data: params
    })
}
// 获取推荐类型
export function typeRecommend(params) {
    return request({
        url: '/recommend/type_list',
        method: 'post',
        data: params

    })
}